<?php
/**
 * Created by PhpStorm.
 * User: asus
 * Date: 2018/9/24
 * Time: 23:06
 */

class Student
{
    private $name;
    private $age;
    private $gender;
    static private $num;

    public  function  Count()
    {
        self::$num++;
        echo "当前有".self::$num."个学生";
    }
public  function  __construct()
{
    $this->name="喵喵";
    $this->age="11";
    $this->gender="女";

    echo $this->name."加入PHP，";
    $this->Count();
    echo "<br>";
}

    public function __destruct()
    {
        // TODO: Implement __destruct() method.
        echo "哦哈哟~<br>";
    }

function introduce()
{
    echo "我名叫".$this->name."性别".$this->gender."今年".$this->age."岁"."<br>";
}

}